import axios from "axios";
const http = axios.create({
  timeout: 5000,
  baseURL: "http://localhost:3000",
  headers: {
    token:
      "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX3JvbGUiOiIwIiwidXNlcl9uaWNrbmFtZSI6IuWwj-eGiue7tOWwvCIsInVzZXJfZ2VuZGVyIjoi5aWzIiwidXNlcl9kaXF1Ijoi5Lit5Zu95rip5beeIiwidXNlcl9uYW1lIjoiMTIzIiwidXNlcl9wYXNzd29yZCI6IjEyMyIsImlhdCI6MTY1MzM1NTY2NywiZXhwIjoxNjUzMzU5MjY3fQ.Sth0gW6-16J6-RuNVt2D8MRj9wwxw6snLOkhvoN36no",
  },
});

http.interceptors.request.use(
  (res) => {
    return res;
  },
  (err) => {
    return err;
  }
);

http.interceptors.response.use(
  (res) => {
    return res;
  },
  (err) => {
    return err;
  }
);

export default http;
